package com.ybzl.collect;

import org.apache.commons.lang3.ArrayUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.xml.ws.Endpoint;
import java.util.Arrays;

@SpringBootApplication
public class CollectApp {

    public static void main(String[] args) {
        if (Arrays.stream(args).noneMatch(str -> str.contains("--mpw.key"))) {
            String[] aa = ArrayUtils.insert(args.length, args, "--mpw.key=65001cdce347030d");
            SpringApplication.run(CollectApp.class, aa);
        }else {
            SpringApplication.run(CollectApp.class, args);
        }
    }
}
